#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../universal-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy universal-gateway "
cp ../universal-gateway/target/universal-gateway.jar ./universal/gateway/jar

echo "begin copy universal-auth "
cp ../universal-auth/target/universal-auth.jar ./universal/auth/jar

echo "begin copy universal-visual "
cp ../universal-visual/universal-monitor/target/universal-visual-monitor.jar  ./universal/visual/monitor/jar

echo "begin copy universal-modules-system "
cp ../universal-modules/universal-system/target/universal-modules-system.jar ./universal/modules/system/jar

echo "begin copy universal-modules-file "
cp ../universal-modules/universal-file/target/universal-modules-file.jar ./universal/modules/file/jar

echo "begin copy universal-modules-job "
cp ../universal-modules/universal-job/target/universal-modules-job.jar ./universal/modules/job/jar

echo "begin copy universal-modules-gen "
cp ../universal-modules/universal-gen/target/universal-modules-gen.jar ./universal/modules/gen/jar

